package com.reader.cms.entity.common;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @author gumenghao
 * @@description
 * @date 2018-10-31
 */
@TableName("reader_comment")
public class ReaderComment extends Model<ReaderComment> {

    private static final long serialVersionUID = 1L;


    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    /**
     * 关联id，所有有相关评论的ID
     */

    @TableField("doc_id")

    private String docId;

    /**
     * 评论内容
     */


    private String comment;

    /**
     * 留言是否置顶,1置顶,0不置顶
     */

    @TableField("is_to_top")

    private Integer isToTop;

    /**
     * 关联APP用户表
     */

    @TableField("app_user_id")

    private Integer appUserId;


    private Integer enable;


    @TableField("del_flag")

    private Integer delFlag;


    @TableField("insert_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDt;

    @TableField("updt_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updtDt;


    @TableField("updt_user_id")

    private Integer updtUserId;

    @TableField(exist = false)
    private String praiseNum;

    @TableField(exist = false)
    private String replay;

    @TableField(exist = false)
    private Integer replyId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getIsToTop() {
        return isToTop;
    }

    public void setIsToTop(Integer isToTop) {
        this.isToTop = isToTop;
    }

    public Integer getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(Integer appUserId) {
        this.appUserId = appUserId;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getInsertDt() {
        return insertDt;
    }

    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

    public Date getUpdtDt() {
        return updtDt;
    }

    public void setUpdtDt(Date updtDt) {
        this.updtDt = updtDt;
    }

    public Integer getUpdtUserId() {
        return updtUserId;
    }

    public void setUpdtUserId(Integer updtUserId) {
        this.updtUserId = updtUserId;
    }

    public String getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(String praiseNum) {
        this.praiseNum = praiseNum;
    }

    public String getReplay() {
        return replay;
    }

    public void setReplay(String replay) {
        this.replay = replay;
    }

    public Integer getReplyId() {

        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderComment{" +
                ", id=" + id +
                ", docId=" + docId +
                ", comment=" + comment +
                ", isToTop=" + isToTop +
                ", appUserId=" + appUserId +
                ", enable=" + enable +
                ", delFlag=" + delFlag +
                ", insertDt=" + insertDt +
                "}";
    }
}